xen/arm: vgic-v3: Clean the emulation of IROUTER
authorJulien Grall <julien.grall@citrix.com>
Mon, 25 May 2015 20:44:20 +0000 (21:44 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 5 Jun 2015 12:02:30 +0000 (13:02 +0100)
commitca85da37fbde2f623fff4c269731addf61ccff75
tree589c55c1f4339cb1a210364d56b8bb254adcf52f
parentb248d32f4fce6f5ea1d59228cc435b80c3b50351
xen/arm: vgic-v3: Clean the emulation of IROUTER

The read emulation of the register IROUTER contains lots of uncessary
code as irouter is already valid and doesn't need any processing before
setting the value in a register.

Also take the opportunity to factorize the code to find a vCPU from the
affinity in a single place. It will be easier to change the way to do it
later.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Cc: Chen Baozi <cbz@baozis.org>
Acked-by: Chen Baozi <baozich@gmail.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/vgic-v3.c